#pragma once
#ifndef OBR_COLORTOOLS_H
#define OBR_COLORTOOLS_H

#include "core/Spectrum.h"

namespace OBR
{

namespace ColorTools
{
/**
 * @brief convert sampled spectrum to rgb color
 *
 * @param s
 * @return char4
 */
char4 spectrum2color(Spectrum s);

/**
 * @brief radiance to color data, discarding alpha channel
 *
 * @param radiance
 * @return char4
 */
char4 radiance2color(Spectrum radiance, float gamma);

} // namespace ColorTools
} // namespace OBR

#endif